import axios from "axios";
axios.defaults.baseURL = "http://127.0.0.1:5000";
export const addcate = (params) => axios.post("/goods/addcate", params);
export const catelist = (params) => axios.get("/goods/catelist", { params });
export const delcate = (params) => axios.get("/goods/delcate", { params });
export const editcate = (params) => axios.post("/goods/editcate", params);
export const categories = (params) =>
  axios.get("/goods/categories", { params });
export const addgood = (params) => axios.post("/goods/add", params);
export const goodlist = (params) => axios.get("/goods/list", { params });
export const del = (params) => axios.get("/goods/del", { params });
export const editgoods = (params) => axios.post("/goods/edit", params);
